import request from "../../utils/request";

//产品推荐
export function productRecommend(params = {}) {
  return request({
    url: "api/v1/product-recommend",
    method: "post",
    data: params,
  });
}
//产品分类
export function productClass(params:{}) {
  return request({
    url: 'api/v1/product-class',
    method: 'post',
    data: params
  }, {
    loading: true
  }, {
    text: '获取列表数据....'
  })
}


//获取下载url
export function productDownloadUrl(params:{}) {
  return request({
    url: 'api/v1/product-download',
    method: 'get',
    params: params
  }, {
    loading: true
  }, {
    text: '请稍后...'
  })
}
//下载记录
export function insertUserDownloadLog(params:{}) {
  return request({
    url: 'api/v1/download-log',
    method: 'post',
    data: params
  })
}


//检查用户是否下载
export function checkUserDownload(params:{}) {
  return request({
    url: 'api/v1/check-user-download',
    method: 'post',
    data: params
  }, {
    loading: true
  }, {
    text: '请稍后...'
  })
}

//获取用户信息
export function profile(params:{}) {
  return request({
    url: 'api/v1/profile',
    method: 'get',
    params: params
  })
}


//获取常见问题
export function askedQuestion(params:{}) {
  return request({
    url: 'api/v1/asked_question',
    method: 'get',
    params: params
  })
}

//保存客户申请
export function saveCustomer(params:{}) {
  return request({
    url: 'api/v1/save-customer',
    method: 'post',
    data: params
  })
}

//订阅信息
export function subscribeList(params:{}) {
  return request({
    url: 'api/v1/subscribe-list',
    method: 'get',
    params: params
  })
}





